package com.miyake.rest;

import java.io.Serializable;

import org.simpleframework.xml.Element;

public class Value implements Serializable {
    /**
     * 
     */
    private static final long serialVersionUID = 1L;
    @Element
    private String id = "Unique ID";
    @Element
    private String caption = "Displayed Caption";
    @Element
    private String value = "Value";
    
    public enum SubUnit {
        Tera, Mega, Killo, Milli, Micro, Nano, Pico, None 
    }
    @Element
    private SubUnit subUnit = SubUnit.Nano;
    @Element
    private String unit;
    /**
     * @return the id
     */
    public String getId() {
        return id;
    }
    /**
     * @param id the id to set
     */
    public void setId(String id) {
        this.id = id;
    }
    
    public Value() {}
    
    public Value(String id, String caption, String value, SubUnit subUnit,
            String unit) {
        super();
        this.id = id;
        this.caption = caption;
        this.value = value;
        this.subUnit = subUnit;
        this.unit = unit;
    }
    /**
     * @return the caption
     */
    public String getCaption() {
        return caption;
    }
    /**
     * @param caption the caption to set
     */
    public void setCaption(String caption) {
        this.caption = caption;
    }
    /**
     * @return the value
     */
    public String getValue() {
        return value;
    }
    /**
     * @param value the value to set
     */
    public void setValue(String value) {
        this.value = value;
    }
    /**
     * @return the subUnit
     */
    public SubUnit getSubUnit() {
        return subUnit;
    }
    /**
     * @param subUnit the subUnit to set
     */
    public void setSubUnit(SubUnit subUnit) {
        this.subUnit = subUnit;
    }
    /**
     * @return the unit
     */
    public String getUnit() {
        return unit;
    }
    /**
     * @param unit the unit to set
     */
    public void setUnit(String unit) {
        this.unit = unit;
    }
}
